
const state ={
    bread:[],
    weidu:[],
    hsz:[],
    yidu:[],
}
const mutations={
    xx(state,i){
        state.bread.splice(i,1)
    },
    //  删除当前
    scdq(state){
        state.bread.splice(0,1)
    },
    //删除单个回收站
    schsz(state,i){
        state.hsz.splice(i,1)
    },
    //添加到已读
    add_yidu(state,row){
        state.yidu.push(row)
    },
    //全部添加到回收站
    addall_hsz(state,i){
        state.hsz.push(i)
    },
    //删除未读
    scwd(state,i){
        state.weidu.splice(i,1)
    },
    //添加到未读
    tjwd(state,row){
        state.yidu.push(row)
    },
    //删除一个已读
    scone_wd(state,i){
        state.weidu.splice(i,1)
    },
    //已读空
    ydk(state){
        state.yidu=[]
    },
    //删除已读
    scyd(state,i){
        state.yidu.splice(i,1)
    },
    //已读
    yd(state,item){
        state.yidu=item
    },
    //清空面包屑
    sd(state){
        state.bread=[]
    },
    //全部清空
    allqk(state){
        state.hsz=[]
    },
    //全部删除
    allsc(state){
        // state.hsz.push(item)
        state.weidu=[]
    },
    //删除
    sc(state,row){
        state.hsz.push(row)
    },
    //这是侧边栏
    add:(state,val) => {
        state.bread.unshift(val)
        state.bread=[...new Set(state.bread)]
    },
    //添加到未读
    bwwd:(state,row)=>{
        state.weidu.unshift(row)
        // state.weidu=[...new Set(state.weidu)]
    },
    //全部标为已读
    allyd(state,item){
        state.weidu.push(item)
    }
}

const actions={

}



export default {
    namespaced: true,
    state,
    actions,
    mutations
}